package club.easin.config.db;

import club.easin.enums.DbEmHelper;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class Dbrouting extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DbContextHolder.getDb().orElse(DbEmHelper.DbTypeEm.db0);
    }

}
